package net.yrom.screenrecorder.rtmp;


import net.yrom.screenrecorder.task.RtmpStreamingSender;

public class RESFlvDataCollecterImpl implements RESFlvDataCollecter{

    private final RtmpStreamingSender rtmpStreamingSender;

    public RESFlvDataCollecterImpl(RtmpStreamingSender rtmpStreamingSender) {
        this.rtmpStreamingSender = rtmpStreamingSender;
    }

    @Override
    public void collect(RESFlvData flvData, int type) {
        rtmpStreamingSender.sendFood(flvData,type);
    }
}
